import java.util.Scanner;

public class LeeCode_SZ_11 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数组的长度");
        int a = 2;
      while(true) {
          a = sc.nextInt();
          int[] height = new int[a];
          int n = height.length;
          if(n>=2 && n<=10*10*10*10*10){
              break;
          }
      }                                              //输入数组的长度
    }
}
